package com.fire.aop;

import org.springframework.aop.ThrowsAdvice;

import java.lang.reflect.Method;
import java.rmi.RemoteException;

/**
 * @author zwd
 * @date 2021/8/15
 * @email zwd@hhh.com
 */
public  class CombinedThrowsAdvice implements ThrowsAdvice {

	public void afterThrowing(RemoteException ex) throws Throwable {
		// Do something with remote exception
	}

	public void afterThrowing(Method m, Object[] args, Object target, RuntimeException ex) {
		// Do something with all arguments
	}
}

